package com.kun.music.service.impl;

import com.kun.music.dao.AdminMapper;
import com.kun.music.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fangkun
 * @create 2022-12-21-13:35
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public boolean login(String name, String password) {

        return adminMapper.checkLogin(name, password) > 0 ? true : false;
    }
}
